mpi: worker moderator
	mpirun runschema

worker: worker.c protocol.h
	mpicc -o worker worker.c

moderator: moderator.c protocol.h
	mpicc -o moderator moderator.c

testworker: worker.c protocol.h graphReader.c
	clear;
	gcc -g worker.c -o testworker

testmod: moderator.c protocol.h
	clear;
	gcc -g moderator.c -o testmod

vmod: testmod
	clear;clear;
	valgrind --leak-check=full --track-origins=yes --show-reachable=yes ./testmod

vworker: testworker
	clear;clear;
	valgrind --leak-check=full --track-origins=yes --show-reachable=yes ./testworker
